<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DesignPattern: C:/96_project/DesignPattern/09_Decorator/DESIGNPATTERN_Decorator.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="DesignPattern.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">DesignPattern
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_e49738db2f0501d3fc293a7cf6ffeacf.html">09_Decorator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">DESIGNPATTERN_Decorator.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="stdafx_8h.html">stdafx.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#ifndef CXX_DESIGNPATTERN_DECORATOR_H</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8h.html">DESIGNPATTERN_Decorator.h</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_decorator.html#a521b1de6bbb8e5b9e10676507ad8c603">   22</a></span>&#160;<a class="code" href="class_decorator.html#a8992e0a9570350da40c6f0bfc2de9fb4">Decorator::Decorator</a>(<a class="code" href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3c">MANUFACTURER_TYPE</a> eManufacturer, <a class="code" href="class_computer_component.html">ComputerComponent</a>* pComputerComponent) :</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="class_computer_component.html">ComputerComponent</a>(<a class="code" href="_product_def_8h.html#a22f925c240c8faafe321b43e81c14385a61052cb15ac698a17ee3bfe3ebc22800">COMPUTER_NONE</a>),</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    m_eManufacturer(eManufacturer),</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    m_pComputerComponent(pComputerComponent)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eManufacturer[%d], Manufacturer[%s]&quot;</span>, <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>, <a class="code" href="_product_def_8h.html#a5f011e7253ef8ec3d44cbeff272cfecc">STATIC_CONST_STRING_MANUFACTURER</a>[<a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>].c_str());</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;}</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_decorator.html#a3c67f74c83d839f2fd631e9bc44486bc">   36</a></span>&#160;<a class="code" href="class_decorator.html#a3c67f74c83d839f2fd631e9bc44486bc">Decorator::~Decorator</a>()</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eManufacturer[%d], Manufacturer[%s]&quot;</span>, <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>, <a class="code" href="_product_def_8h.html#a5f011e7253ef8ec3d44cbeff272cfecc">STATIC_CONST_STRING_MANUFACTURER</a>[<a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>].c_str());</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_decorator.html#a6df18376f17a9c5429e9bfc784d2b407">   48</a></span>&#160;<a class="code" href="class_decorator.html#a6df18376f17a9c5429e9bfc784d2b407">Decorator::Operation</a>()</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="class_computer_component.html#a7a0201da0303d203c0bdbef5f0b1dac8">ComputerComponent::Operation</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eManufacturer[%d], Manufacturer[%s]&quot;</span>, <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>, <a class="code" href="_product_def_8h.html#a5f011e7253ef8ec3d44cbeff272cfecc">STATIC_CONST_STRING_MANUFACTURER</a>[<a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>].c_str());</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="class_decorator.html#a704a9c39fc77f1d80b8d70d5d836401e">m_pComputerComponent</a>-&gt;<a class="code" href="class_computer_component.html#a7a0201da0303d203c0bdbef5f0b1dac8">Operation</a>();</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_decorator.html#aeb9be376fb29b96bba32a8a1c4c38d5e">   62</a></span>&#160;<a class="code" href="class_decorator.html#aeb9be376fb29b96bba32a8a1c4c38d5e">Decorator::SetManufacturer</a>(<a class="code" href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3c">MANUFACTURER_TYPE</a> eManufacturer)</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;{</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eManufacturer[%d], Manufacturer[%s]&quot;</span>, <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>, <a class="code" href="_product_def_8h.html#a5f011e7253ef8ec3d44cbeff272cfecc">STATIC_CONST_STRING_MANUFACTURER</a>[<a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>].c_str());</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a> = eManufacturer;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;}</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<a class="code" href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3c">MANUFACTURER_TYPE</a> </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_decorator.html#a81b00e521fe7c0234275e7bba54cbdab">   75</a></span>&#160;<a class="code" href="class_decorator.html#a81b00e521fe7c0234275e7bba54cbdab">Decorator::GetManufacturer</a>()</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;{</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;m_eManufacturer[%d], Manufacturer[%s]&quot;</span>, <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>, <a class="code" href="_product_def_8h.html#a5f011e7253ef8ec3d44cbeff272cfecc">STATIC_CONST_STRING_MANUFACTURER</a>[<a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>].c_str());</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">m_eManufacturer</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;}</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_a_s_u_s_decorator.html#afa6b078596883a01f3391ac927d5e899">   87</a></span>&#160;<a class="code" href="class_a_s_u_s_decorator.html#afa6b078596883a01f3391ac927d5e899">ASUSDecorator::ASUSDecorator</a>(<a class="code" href="class_computer_component.html">ComputerComponent</a>* pComputerComponent) :</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="class_decorator.html">Decorator</a>(<a class="code" href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3ca00dfaae78c3d2dc5aabd7bc8ef116874">MANUFACTURER_ASUS</a>, pComputerComponent)</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_a_s_u_s_decorator.html#aa3365de5478b880f7bd60da2d63f75ab">   99</a></span>&#160;<a class="code" href="class_a_s_u_s_decorator.html#aa3365de5478b880f7bd60da2d63f75ab">ASUSDecorator::~ASUSDecorator</a>()</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;{</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_a_s_u_s_decorator.html#acbc2615b94871231e9eb51e020944a0f">  111</a></span>&#160;<a class="code" href="class_a_s_u_s_decorator.html#acbc2615b94871231e9eb51e020944a0f">ASUSDecorator::Operation</a>()</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;{</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <a class="code" href="class_decorator.html#a6df18376f17a9c5429e9bfc784d2b407">Decorator::Operation</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="class_a_s_u_s_decorator.html#ab2a316f77727043e4ea105e7531a4c5e">AddedBehavior</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="class_a_s_u_s_decorator.html#ab2a316f77727043e4ea105e7531a4c5e">  125</a></span>&#160;<a class="code" href="class_a_s_u_s_decorator.html#ab2a316f77727043e4ea105e7531a4c5e">ASUSDecorator::AddedBehavior</a>()</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;{</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_d_e_l_l_decorator.html#a6712f1b5e2694329591238c62f04b459">  137</a></span>&#160;<a class="code" href="class_d_e_l_l_decorator.html#a6712f1b5e2694329591238c62f04b459">DELLDecorator::DELLDecorator</a>(<a class="code" href="class_computer_component.html">ComputerComponent</a>* pComputerComponent) :</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="class_decorator.html">Decorator</a>(<a class="code" href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3cacd7b86eb7bab5cb5f02ba1f51b6a02f6">MANUFACTURER_DELL</a>, pComputerComponent)</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;{</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="class_d_e_l_l_decorator.html#ac10e1ae5cbbd14d39120bd151c32e80c">  149</a></span>&#160;<a class="code" href="class_d_e_l_l_decorator.html#ac10e1ae5cbbd14d39120bd151c32e80c">DELLDecorator::~DELLDecorator</a>()</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;{</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;}</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="class_d_e_l_l_decorator.html#a47fd96c448a3da1c0feab8c32db6f02f">  161</a></span>&#160;<a class="code" href="class_d_e_l_l_decorator.html#a47fd96c448a3da1c0feab8c32db6f02f">DELLDecorator::Operation</a>()</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;{</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <a class="code" href="class_decorator.html#a6df18376f17a9c5429e9bfc784d2b407">Decorator::Operation</a>();</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <a class="code" href="class_d_e_l_l_decorator.html#afffc185df5d8a8dd3d2e33bd071dde4d">AddedBehavior</a>();</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;}</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="class_d_e_l_l_decorator.html#afffc185df5d8a8dd3d2e33bd071dde4d">  175</a></span>&#160;<a class="code" href="class_d_e_l_l_decorator.html#afffc185df5d8a8dd3d2e33bd071dde4d">DELLDecorator::AddedBehavior</a>()</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;{</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;}</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="class_h_p_decorator.html#a56604f52822c8b74a3e3cbcb17f6a41d">  186</a></span>&#160;<a class="code" href="class_h_p_decorator.html#a56604f52822c8b74a3e3cbcb17f6a41d">HPDecorator::HPDecorator</a>(<a class="code" href="class_computer_component.html">ComputerComponent</a>* pComputerComponent) :</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <a class="code" href="class_decorator.html">Decorator</a>(<a class="code" href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3ca50d9d586aca44a3d48d040242054f005">MANUFACTURER_HP</a>, pComputerComponent)</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;{</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="class_h_p_decorator.html#ab55597ea63e5d650d26b1413b39dced9">  198</a></span>&#160;<a class="code" href="class_h_p_decorator.html#ab55597ea63e5d650d26b1413b39dced9">HPDecorator::~HPDecorator</a>()</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;{</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;}</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="class_h_p_decorator.html#aa81b53c4bce511cb90292ad7d72a7644">  210</a></span>&#160;<a class="code" href="class_h_p_decorator.html#aa81b53c4bce511cb90292ad7d72a7644">HPDecorator::Operation</a>()</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;{</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <a class="code" href="class_decorator.html#a6df18376f17a9c5429e9bfc784d2b407">Decorator::Operation</a>();</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="class_h_p_decorator.html#a85d94ed7fc988be720d5d771d28e2d45">AddedBehavior</a>();</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;}</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="class_h_p_decorator.html#a85d94ed7fc988be720d5d771d28e2d45">  224</a></span>&#160;<a class="code" href="class_h_p_decorator.html#a85d94ed7fc988be720d5d771d28e2d45">HPDecorator::AddedBehavior</a>()</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;{</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <a class="code" href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;}</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">/* EOF */</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_a_s_u_s_decorator_html_acbc2615b94871231e9eb51e020944a0f"><div class="ttname"><a href="class_a_s_u_s_decorator.html#acbc2615b94871231e9eb51e020944a0f">ASUSDecorator::Operation</a></div><div class="ttdeci">virtual VOID Operation()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00111">DESIGNPATTERN_Decorator.cpp:111</a></div></div>
<div class="ttc" id="aclass_decorator_html"><div class="ttname"><a href="class_decorator.html">Decorator</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8h_source.html#l00017">DESIGNPATTERN_Decorator.h:17</a></div></div>
<div class="ttc" id="a_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8h_html"><div class="ttname"><a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8h.html">DESIGNPATTERN_Decorator.h</a></div><div class="ttdoc">1.When the algorithm to create complex object should be independent of the part of the object,...</div></div>
<div class="ttc" id="aclass_computer_component_html_a7a0201da0303d203c0bdbef5f0b1dac8"><div class="ttname"><a href="class_computer_component.html#a7a0201da0303d203c0bdbef5f0b1dac8">ComputerComponent::Operation</a></div><div class="ttdeci">virtual VOID Operation()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___computer_component_8cpp_source.html#l00046">DESIGNPATTERN_ComputerComponent.cpp:46</a></div></div>
<div class="ttc" id="aclass_decorator_html_a8992e0a9570350da40c6f0bfc2de9fb4"><div class="ttname"><a href="class_decorator.html#a8992e0a9570350da40c6f0bfc2de9fb4">Decorator::Decorator</a></div><div class="ttdeci">Decorator()</div></div>
<div class="ttc" id="a_product_def_8h_html_a5f011e7253ef8ec3d44cbeff272cfecc"><div class="ttname"><a href="_product_def_8h.html#a5f011e7253ef8ec3d44cbeff272cfecc">STATIC_CONST_STRING_MANUFACTURER</a></div><div class="ttdeci">static const string STATIC_CONST_STRING_MANUFACTURER[MANUFACTURER_ALL]</div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00040">ProductDef.h:40</a></div></div>
<div class="ttc" id="aclass_d_e_l_l_decorator_html_afffc185df5d8a8dd3d2e33bd071dde4d"><div class="ttname"><a href="class_d_e_l_l_decorator.html#afffc185df5d8a8dd3d2e33bd071dde4d">DELLDecorator::AddedBehavior</a></div><div class="ttdeci">virtual VOID AddedBehavior()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00175">DESIGNPATTERN_Decorator.cpp:175</a></div></div>
<div class="ttc" id="a_product_def_8h_html_ac73ca32847343c10f73f1fa0b7b6ae3c"><div class="ttname"><a href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3c">MANUFACTURER_TYPE</a></div><div class="ttdeci">MANUFACTURER_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00028">ProductDef.h:28</a></div></div>
<div class="ttc" id="a_product_def_8h_html_ac73ca32847343c10f73f1fa0b7b6ae3cacd7b86eb7bab5cb5f02ba1f51b6a02f6"><div class="ttname"><a href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3cacd7b86eb7bab5cb5f02ba1f51b6a02f6">MANUFACTURER_DELL</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00031">ProductDef.h:31</a></div></div>
<div class="ttc" id="aclass_decorator_html_a6df18376f17a9c5429e9bfc784d2b407"><div class="ttname"><a href="class_decorator.html#a6df18376f17a9c5429e9bfc784d2b407">Decorator::Operation</a></div><div class="ttdeci">virtual VOID Operation()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00048">DESIGNPATTERN_Decorator.cpp:48</a></div></div>
<div class="ttc" id="aclass_a_s_u_s_decorator_html_ab2a316f77727043e4ea105e7531a4c5e"><div class="ttname"><a href="class_a_s_u_s_decorator.html#ab2a316f77727043e4ea105e7531a4c5e">ASUSDecorator::AddedBehavior</a></div><div class="ttdeci">virtual VOID AddedBehavior()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00125">DESIGNPATTERN_Decorator.cpp:125</a></div></div>
<div class="ttc" id="a_product_def_8h_html_ac73ca32847343c10f73f1fa0b7b6ae3ca00dfaae78c3d2dc5aabd7bc8ef116874"><div class="ttname"><a href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3ca00dfaae78c3d2dc5aabd7bc8ef116874">MANUFACTURER_ASUS</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00032">ProductDef.h:32</a></div></div>
<div class="ttc" id="aclass_h_p_decorator_html_a56604f52822c8b74a3e3cbcb17f6a41d"><div class="ttname"><a href="class_h_p_decorator.html#a56604f52822c8b74a3e3cbcb17f6a41d">HPDecorator::HPDecorator</a></div><div class="ttdeci">HPDecorator(ComputerComponent *pComputerComponent)</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00186">DESIGNPATTERN_Decorator.cpp:186</a></div></div>
<div class="ttc" id="aclass_decorator_html_aae231a492cc01af5a02cd4dad7a10389"><div class="ttname"><a href="class_decorator.html#aae231a492cc01af5a02cd4dad7a10389">Decorator::m_eManufacturer</a></div><div class="ttdeci">MANUFACTURER_TYPE m_eManufacturer</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8h_source.html#l00088">DESIGNPATTERN_Decorator.h:88</a></div></div>
<div class="ttc" id="a_my_self_def_8h_html_a7927e087749615dae3114cc27b91c86d"><div class="ttname"><a href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div><div class="ttdeci">void VOID</div><div class="ttdef"><b>Definition:</b> <a href="_my_self_def_8h_source.html#l00011">MySelfDef.h:11</a></div></div>
<div class="ttc" id="aclass_decorator_html_aeb9be376fb29b96bba32a8a1c4c38d5e"><div class="ttname"><a href="class_decorator.html#aeb9be376fb29b96bba32a8a1c4c38d5e">Decorator::SetManufacturer</a></div><div class="ttdeci">VOID SetManufacturer(MANUFACTURER_TYPE eManufacturer)</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00062">DESIGNPATTERN_Decorator.cpp:62</a></div></div>
<div class="ttc" id="astdafx_8h_html"><div class="ttname"><a href="stdafx_8h.html">stdafx.h</a></div></div>
<div class="ttc" id="aclass_h_p_decorator_html_ab55597ea63e5d650d26b1413b39dced9"><div class="ttname"><a href="class_h_p_decorator.html#ab55597ea63e5d650d26b1413b39dced9">HPDecorator::~HPDecorator</a></div><div class="ttdeci">virtual ~HPDecorator()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00198">DESIGNPATTERN_Decorator.cpp:198</a></div></div>
<div class="ttc" id="a_product_def_8h_html_a22f925c240c8faafe321b43e81c14385a61052cb15ac698a17ee3bfe3ebc22800"><div class="ttname"><a href="_product_def_8h.html#a22f925c240c8faafe321b43e81c14385a61052cb15ac698a17ee3bfe3ebc22800">COMPUTER_NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00049">ProductDef.h:49</a></div></div>
<div class="ttc" id="aclass_decorator_html_a81b00e521fe7c0234275e7bba54cbdab"><div class="ttname"><a href="class_decorator.html#a81b00e521fe7c0234275e7bba54cbdab">Decorator::GetManufacturer</a></div><div class="ttdeci">MANUFACTURER_TYPE GetManufacturer()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00075">DESIGNPATTERN_Decorator.cpp:75</a></div></div>
<div class="ttc" id="aclass_decorator_html_a704a9c39fc77f1d80b8d70d5d836401e"><div class="ttname"><a href="class_decorator.html#a704a9c39fc77f1d80b8d70d5d836401e">Decorator::m_pComputerComponent</a></div><div class="ttdeci">ComputerComponent * m_pComputerComponent</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8h_source.html#l00089">DESIGNPATTERN_Decorator.h:89</a></div></div>
<div class="ttc" id="aclass_computer_component_html"><div class="ttname"><a href="class_computer_component.html">ComputerComponent</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___computer_component_8h_source.html#l00015">DESIGNPATTERN_ComputerComponent.h:15</a></div></div>
<div class="ttc" id="aclass_a_s_u_s_decorator_html_aa3365de5478b880f7bd60da2d63f75ab"><div class="ttname"><a href="class_a_s_u_s_decorator.html#aa3365de5478b880f7bd60da2d63f75ab">ASUSDecorator::~ASUSDecorator</a></div><div class="ttdeci">virtual ~ASUSDecorator()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00099">DESIGNPATTERN_Decorator.cpp:99</a></div></div>
<div class="ttc" id="aclass_h_p_decorator_html_a85d94ed7fc988be720d5d771d28e2d45"><div class="ttname"><a href="class_h_p_decorator.html#a85d94ed7fc988be720d5d771d28e2d45">HPDecorator::AddedBehavior</a></div><div class="ttdeci">virtual VOID AddedBehavior()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00224">DESIGNPATTERN_Decorator.cpp:224</a></div></div>
<div class="ttc" id="a_my_self_def_8h_html_a0be11ce2e33906806ac4e521781809c0"><div class="ttname"><a href="_my_self_def_8h.html#a0be11ce2e33906806ac4e521781809c0">DEBUG_PRINTF</a></div><div class="ttdeci">#define DEBUG_PRINTF(fmt, args...)</div><div class="ttdef"><b>Definition:</b> <a href="_my_self_def_8h_source.html#l00025">MySelfDef.h:25</a></div></div>
<div class="ttc" id="aclass_a_s_u_s_decorator_html_afa6b078596883a01f3391ac927d5e899"><div class="ttname"><a href="class_a_s_u_s_decorator.html#afa6b078596883a01f3391ac927d5e899">ASUSDecorator::ASUSDecorator</a></div><div class="ttdeci">ASUSDecorator(ComputerComponent *pComputerComponent)</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00087">DESIGNPATTERN_Decorator.cpp:87</a></div></div>
<div class="ttc" id="aclass_d_e_l_l_decorator_html_a6712f1b5e2694329591238c62f04b459"><div class="ttname"><a href="class_d_e_l_l_decorator.html#a6712f1b5e2694329591238c62f04b459">DELLDecorator::DELLDecorator</a></div><div class="ttdeci">DELLDecorator(ComputerComponent *pComputerComponent)</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00137">DESIGNPATTERN_Decorator.cpp:137</a></div></div>
<div class="ttc" id="a_product_def_8h_html_ac73ca32847343c10f73f1fa0b7b6ae3ca50d9d586aca44a3d48d040242054f005"><div class="ttname"><a href="_product_def_8h.html#ac73ca32847343c10f73f1fa0b7b6ae3ca50d9d586aca44a3d48d040242054f005">MANUFACTURER_HP</a></div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00033">ProductDef.h:33</a></div></div>
<div class="ttc" id="aclass_decorator_html_a3c67f74c83d839f2fd631e9bc44486bc"><div class="ttname"><a href="class_decorator.html#a3c67f74c83d839f2fd631e9bc44486bc">Decorator::~Decorator</a></div><div class="ttdeci">virtual ~Decorator()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00036">DESIGNPATTERN_Decorator.cpp:36</a></div></div>
<div class="ttc" id="aclass_d_e_l_l_decorator_html_a47fd96c448a3da1c0feab8c32db6f02f"><div class="ttname"><a href="class_d_e_l_l_decorator.html#a47fd96c448a3da1c0feab8c32db6f02f">DELLDecorator::Operation</a></div><div class="ttdeci">virtual VOID Operation()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00161">DESIGNPATTERN_Decorator.cpp:161</a></div></div>
<div class="ttc" id="aclass_h_p_decorator_html_aa81b53c4bce511cb90292ad7d72a7644"><div class="ttname"><a href="class_h_p_decorator.html#aa81b53c4bce511cb90292ad7d72a7644">HPDecorator::Operation</a></div><div class="ttdeci">virtual VOID Operation()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00210">DESIGNPATTERN_Decorator.cpp:210</a></div></div>
<div class="ttc" id="aclass_d_e_l_l_decorator_html_ac10e1ae5cbbd14d39120bd151c32e80c"><div class="ttname"><a href="class_d_e_l_l_decorator.html#ac10e1ae5cbbd14d39120bd151c32e80c">DELLDecorator::~DELLDecorator</a></div><div class="ttdeci">virtual ~DELLDecorator()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___decorator_8cpp_source.html#l00149">DESIGNPATTERN_Decorator.cpp:149</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
